package com.wuchao.interfaces;

/**
 * 作者：吴超
 * 邮箱：wuchao_19931120@163.com
 * 时间：2021-11-13
 * 描述：
 */

public class sCat implements SAnimal{

    private  String name;
    private Integer age;


    public sCat(){

    }

    public sCat(String name){
        this.name = name;
    }

    @Override
    public void eat() {

    }

    @Override
    public void travel() {

    }

    @Override
    public void setName(String name) {
        this.name = name;
    }

    public void getName(){
        System.out.println(this.name);
    }

    @Override
    public void setAge(Integer age) {
        this.age = age;
    }

    public void getAge(){
        System.out.println(this.age);
    }


    public static void main(String[] args) {
        sCat sCat = new sCat();
        sCat.setAge(10);
        sCat.getAge();
        sCat.setName("wuchao");
        sCat.getName();
    }

}
